package com.wangdao.wechatmall.bean.vo.wx;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author liyongqiang
 * CreateDate 2021/7/11 17:16
 */


@NoArgsConstructor
@Data
public class WXOrderListVO {
    @JsonProperty("data")
    private List<DataDTO> data;
    @JsonProperty("count")
    private Integer count;
    @JsonProperty("totalPages")
    private Integer totalPages;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("orderStatusText")
        private String orderStatusText;
        @JsonProperty("isGroupin")
        private Boolean isGroupin;
        @JsonProperty("orderSn")
        private String orderSn;
        @JsonProperty("actualPrice")
        private Double actualPrice;
        @JsonProperty("goodsList")
        private List<DataDTO.GoodsListDTO> goodsList;
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("handleOption")
        private WXHandleOptionVO handleOption;

        @NoArgsConstructor
        @Data
        public static class GoodsListDTO {
            @JsonProperty("number")
            private Short number;
            @JsonProperty("picUrl")
            private String picUrl;
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("goodsName")
            private String goodsName;
        }
    }
}

